package day6.demo2_volatile;

public class Mythread extends Thread{
   volatile boolean exit = false;
    @Override
    public void run() {
        while (!exit){
            System.out.println(".......");
        }
    }
}
